<div class="row_widget">
  [?php foreach($row_widgets as $widget) : ?]
    <div class="widget">
    [?php if (!$widget['field']->isPartial() || !$widget['field']->isPartial()): ?]
      <div class="content">[?php echo $widget['form'][$widget['name']]->render($widget['attributes'] instanceof sfOutputEscaper ? $widget['attributes']->getRawValue() : $widget['attributes']) ?]</div>
      [?php if ($widget['help']): ?]
        <div class="help">[?php echo __($widget['help'], array(), <?php echo $this->getI18nCatalogue() ?>) ?]</div>
      [?php elseif ($widget['help'] = $widget['form'][$widget['name']]->renderHelp()): ?]
        <div class="help">[?php echo $widget['help'] ?]</div>
      [?php endif; ?]
      [?php echo $widget['form'][$widget['name']]->renderError() ?]
    [?php endif; ?]
    </div>
  [?php endforeach; ?]
  [?php if($count == 1) : ?]
    <div class="widget"></div>
    <div class="widget"></div>
    <div class="widget"></div>
  [?php elseif ($count == 2) : ?]
    <div class="widget"></div>
    <div class="widget"></div>
  [?php elseif ($count == 3) : ?]
    <div class="widget"></div>
  [?php endif; ?]
</div>
